﻿@model LAPI.Data.Model.Usuario

<div class="row">
    <h2>Tú en LAPI</h2>
    <h3>Estos son tus datos @Model.User...</h3>
</div>
<hr />

<div class="row">
<div id="msg" class="span5"></div> 
</div>

<div class="marketing">
    <div class="row">
        <form class="form-horizontal" action="">
                 
            <div class="control-group">
                @LAPI.Web.Helpers.LabelExtensions.LabelFor(this.Html, m => m.Nombre, new Dictionary<string, object> { { "class", "control-label" } })
                <div class="controls">                   
                @LAPI.Web.Helpers.TextBoxExtension.TextBoxFor(this.Html, m => m.Nombre, new Dictionary<string, object> { { "class", "span2" }, { "value", Model.Nombre }, {"readonly","true" } } )
                </div>
            </div>
            
            <div class="control-group">
                @LAPI.Web.Helpers.LabelExtensions.LabelFor(this.Html, m => m.Apellido, new Dictionary<string, object> { { "class", "control-label" } })
                <div class="controls">
                    @LAPI.Web.Helpers.TextBoxExtension.TextBoxFor(this.Html, m => m.Apellido, new Dictionary<string, object> { { "class", "span2" }, { "value", Model.Apellido }, { "readonly", "true" } })
                    @LAPI.Web.Helpers.TextBoxExtension.TextBoxFor(this.Html, m => m.Apellido2, new Dictionary<string, object> { { "class", "span2" }, { "value", Model.Apellido2}, { "readonly", "true" } })
                </div>
            </div>

            <div class="control-group">
                @LAPI.Web.Helpers.LabelExtensions.LabelFor(this.Html, m => m.DNI, new Dictionary<string, object> { { "class", "control-label" } })
                <div class="controls">
                    @LAPI.Web.Helpers.TextBoxExtension.TextBoxFor(this.Html, m => m.DNI, new Dictionary<string, object> { { "class", "span2" }, { "value", Model.DNI }, { "readonly", "true" } })
                </div>
            </div>
                                  
            <div class="control-group">
                @LAPI.Web.Helpers.LabelExtensions.LabelFor(this.Html, m => m.Email, new Dictionary<string, object> { { "class", "control-label" } })
                <div class="controls">
                    @LAPI.Web.Helpers.TextBoxExtension.TextBoxFor(this.Html, m => m.Email, new Dictionary<string, object> { { "class", "span3" }, { "value", Model.Email }, { "readonly", "true" } })
                </div>
            </div>          

            <div class="control-group">
                <div class="controls">               
                    <a class="btn btn-info" href="@Url.Action(actionName: "Modificar", controllerName: "Usuario")">
                        <i class="icon-user"></i>
                        modificar datos perfil
                    </a>       
                
                    <a class="btn btn-info" href="@Url.Action(actionName: "CambiarPassword", controllerName: "Usuario")">
                        <i class="icon-ok"></i>
                        modificar contraseña
                    </a>                               
                </div> 
            </div>
        </form>                
    </div>
</div>
